package ac.github.os.internal.core.holder.player

import ac.github.os.api.common.entity.EntityAdapter
import ac.github.os.internal.core.holder.EntityCompatible
import ac.github.os.internal.core.holder.EventHolder
import org.bukkit.event.player.PlayerInteractEntityEvent
import org.bukkit.event.player.PlayerInteractEvent

class PlayerInteractEntityHolder(override val event: PlayerInteractEntityEvent) :

    EntityCompatible<PlayerInteractEntityEvent>() {
    override val namespace: String
        get() = "player interact entity"


    override fun entity(): EntityAdapter {
        val rightClicked = event.rightClicked
        return EntityAdapter(
            rightClicked.uniqueId.toString(),
            rightClicked.type,
            rightClicked.name
        )
    }
}